package com.modifiertech.lineage.handler;

import com.modifiertech.lineage.event.SkillHandingOffEvent;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.MinecraftForge;

/**
 *
 *
 * @description: default
 * @author: saliencemn
 * @mail: hackingmu@outlook.com
 * @date: 2024/8/18 22:39
 */
public class SkillHandingOffHandler {
    //饿汉
    public static SkillHandingOffHandler INSTANCE=new SkillHandingOffHandler();
    private SkillHandingOffHandler(){
    }

    /**实现 技能抛出事件触发
     *
     * @param entityPlayer
     * @param skillName
     */
    public void skillHandingOff(EntityPlayer entityPlayer, String skillName){
        MinecraftForge.EVENT_BUS.post(new SkillHandingOffEvent.Pre(entityPlayer,skillName));
        //do something
        MinecraftForge.EVENT_BUS.post(new SkillHandingOffEvent.Post(entityPlayer,skillName));
    }

}
